<?php

  $id     = $_REQUEST['id'] ;
  $value  = $_REQUEST['value'] ;
  $column = $_REQUEST['columnName'] ;
  
  if (($column == "Estilo" && ($value == "Normal" || $value == "Amarillo")) || $column != "Estilo") {
    include_once '../etc/classes.php';

    $offers = new HandleXMLOffers("../xml/offers.xml");
    $id     = $offers->updateOffer($id, $column, $value);
    
    echo $value;
    
  }
  else echo "Error! Los valores permitidos en este campo son: Normal y Amarillo (Case sensitive).";
  
?>